import Request from "./../../core";
// 用户信息
export const pubUserInfo = (data) => {
  return Request.get(`/business_admin/user/pubUserInfo`, data, {
    isLoading: false,
  });
};
// 商户地址区域
export const getArea = (data) => {
  return Request.get("/business_admin/region/getArea", data, {
    isLoading: false,
  });
};
// 门店详情
export const getShopDetail = (data) => {
  return Request.post(
    "/business_admin/pubDomainShop/pubApp/getShopDetail",
    data,
    {
      isLoading: false,
    }
  );
};
// 修改门店信息
export const saveShopDetail = (data) => {
  return Request.post(
    "/business_admin/pubDomainShop/pubApp/saveShopDetail",
    data,
    {
      isLoading: false,
    }
  );
};
// 上传图片
export const uploadAvater = (data) => {
  return Request.post("/business_admin/upload", data);
};
// 切换门店的列表
export const getShopsBy = (data) => {
  return Request.post("/business_admin/shop/getShopsBy", data, {
    isLoading: false,
  });
};
// 订单门店列表
export const getShops = (data) => {
  return Request.post("/business_admin/pubDomainShop/getShops", data, {
    isLoading: false,
  });
};

//----------------门店管理   start-------------------
//门店管理门店列表
export const getShopList = (data) => {
  return Request.post(
    "/business_admin/pubDomainShop/pubApp/getShopList",
    data,
    {
      isLoading: false,
    }
  );
};

export const updateShopStatus = (data) => {
  return Request.post(
    "/business_admin/pubDomainShop/pubApp/updateShopStatus",
    data,
    {
      isLoading: false,
    }
  );
};

//----------------门店管理   end-------------------
